package org.game;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

public class GameActivity extends Activity {
	private GLSurfaceView mGlSurfaceView;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mGlSurfaceView = new TouchSurfaceView(this);
        setContentView(mGlSurfaceView);
        mGlSurfaceView.requestFocus();
        mGlSurfaceView.setFocusableInTouchMode(true);
        /*GLSurfaceView view = new GLSurfaceView(this);
   		view.setRenderer(new GLRenderer(this));
   		setContentView(view);*/
        
        
    }
    
    @Override
    protected void onResume() {
    	// TODO Auto-generated method stub
    	super.onResume();
    	mGlSurfaceView.onResume();
    }
    
    @Override
    protected void onPause() {
    	// TODO Auto-generated method stub
    	super.onPause();
    	mGlSurfaceView.onPause();
    }
    
    
}